package com.younion.vo;

import com.younion.common.base.BaseVO;



/**
 * 
 *
 * @property label="店面表" lower="shop" upper="SHOP" instance="shop" table="t_Shop"
 *
 * Copyright (c) 2009 Excellence Network Co.,LTD All right reserved.
 *
 */
public class ShopVO extends BaseVO implements Cloneable{

	/**  */
	private static final long serialVersionUID = -1L;

	/**
	 * 主键Id
	 * @label 主键Id
	 * @code id
	 * @type NUMERIC
	 * @javaType Integer
	 * @pk instance="Id"
	 * @required true
	 * @index 1
	 * @oddeven 0
	 */
	private Integer id;

	/**
	 * 店面名
	 * @label 店面名
	 * @code name
	 * @type VARCHAR
	 * @javaType String
	 * @show 
	 * @length 25
	 * @required true
	 * @index 2
	 * @oddeven 1
	 * @faint 
	 */
	private String name;

	/**
	 * 编码
	 * @label 编码
	 * @code code
	 * @type VARCHAR
	 * @javaType String
	 * @show 
	 * @length 50
	 * @required true
	 * @index 3
	 * @oddeven 2
	 * @isAfterTwo 2
	 * @faint 
	 */
	private String code;

	/**
	 * 地址
	 * @label 地址
	 * @code address
	 * @type VARCHAR
	 * @javaType String
	 * @show 
	 * @length 250
	 * @required true
	 * @index 4
	 * @oddeven 1
	 * @isAfterTwo 1
	 * @faint 
	 */
	private String address;


	/**
	 * 联系人
	 * @label 联系人
	 * @code contact
	 * @type VARCHAR
	 * @javaType String
	 * @show 
	 * @length 5
	 * @index 6
	 * @oddeven 1
	 * @isAfterTwo 1
	 * @faint 
	 */
	private String contact;

	/**
	 * 电话
	 * @label  电话
	 * @code phone
	 * @type CHAR
	 * @javaType String
	 * @show 
	 * @length 6
	 * @required true
	 * @index 7
	 * @oddeven 2
	 * @isAfterTwo 2
	 * @faint 
	 */
	private String phone;

	/**
	 * 商户
	 * @label 商户
	 * @code customer
	 * @type NUMERIC
	 * @javaType Integer
	 * @show 
	 * @index 8
	 * @oddeven 1
	 * @isAfterTwo 1
	 */
	private CustomerVO customer;
	
	/**
	 * 省
	 * 
	 * @label 省
	 * @code provice_id
	 * @type NUMERIC
	 * @javaType Integer
	 * @show
	 * @index 15
	 * @oddeven 2
	 * @isAfterTwo 2
	 */
	private String proviceId;

	/**
	 * 市
	 * 
	 * @label 市
	 * @code city_id
	 * @type NUMERIC
	 * @javaType Integer
	 * @show
	 * @index 16
	 * @oddeven 1
	 * @isAfterTwo 1
	 */
	private String cityId;

	/**
	 * 区
	 * 
	 * @label 区
	 * @code district_id
	 * @type NUMERIC
	 * @javaType Integer
	 * @show
	 * @index 17
	 * @oddeven 2
	 * @isAfterTwo 2
	 */
	private String districtId;
	
	/**
	 * 经度
	 * @label  经度
	 * @code lng
	 * @type CHAR
	 * @javaType String
	 * @show 
	 * @length 6
	 * @required true
	 * @index 7
	 * @oddeven 2
	 * @isAfterTwo 2
	 * @faint 
	 */
	private String lng;
	
	/**
	 * 纬度
	 * @label  纬度
	 * @code lat
	 * @type CHAR
	 * @javaType String
	 * @show 
	 * @length 6
	 * @required true
	 * @index 7
	 * @oddeven 2
	 * @isAfterTwo 2
	 * @faint 
	 */
	private String lat;


	/**
	 * 
	 */
	public ShopVO() {
	}

	/** 
	 * @return the id
	 */ 
	public Integer getId() {
		return id;
	}

	/** 
	 * @param id the id to set 
	 */ 
	public void setId(Integer id) {
		this.id = id;
	}

	/** 
	 * @return the name
	 */ 
	public String getName() {
		return name;
	}

	/** 
	 * @param name the name to set 
	 */ 
	public void setName(String name) {
		this.name = name;
	}

	/** 
	 * @return the code
	 */ 
	public String getCode() {
		return code;
	}

	/** 
	 * @param code the code to set 
	 */ 
	public void setCode(String code) {
		this.code = code;
	}

	/** 
	 * @return the address
	 */ 
	public String getAddress() {
		return address;
	}

	/** 
	 * @param address the address to set 
	 */ 
	public void setAddress(String address) {
		this.address = address;
	}


	/** 
	 * @return the contact
	 */ 
	public String getContact() {
		return contact;
	}

	/** 
	 * @param contact the contact to set 
	 */ 
	public void setContact(String contact) {
		this.contact = contact;
	}

	/** 
	 * @return the phone
	 */ 
	public String getPhone() {
		return phone;
	}

	/** 
	 * @param phone the phone to set 
	 */ 
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/** 
	 * @return the customer
	 */ 
	public CustomerVO getCustomer() {
		return customer;
	}

	/** 
	 * @param customer the customer to set 
	 */ 
	public void setCustomer(CustomerVO customer) {
		this.customer = customer;
	}
	
	/** 
	 * @return the proviceId
	 */ 
	public String getProviceId() {
		return proviceId;
	}
	/** 
	 * @param proviceId the proviceId to set 
	 */ 
	public void setProviceId(String proviceId) {
		this.proviceId = proviceId;
	}
	/** 
	 * @return the cityId
	 */ 
	public String getCityId() {
		return cityId;
	}
	/** 
	 * @param cityId the cityId to set 
	 */ 
	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	/** 
	 * @return the districtId
	 */ 
	public String getDistrictId() {
		return districtId;
	}
	/** 
	 * @param districtId the districtId to set 
	 */ 
	public void setDistrictId(String districtId) {
		this.districtId = districtId;
	}
	/** 
	 * @return the lng
	 */ 
	public String getLng() {
		return lng;
	}
	/** 
	 * @param lng the lng to set 
	 */ 
	public void setLng(String lng) {
		this.lng = lng;
	}
	/** 
	 * @return the lat
	 */ 
	public String getLat() {
		return lat;
	}
	/** 
	 * @param lat the lat to set 
	 */ 
	public void setLat(String lat) {
		this.lat = lat;
	}

	public boolean equals(Object obj){
		if(this == obj){
			return true;
		}
		if(obj instanceof ShopVO){
			ShopVO shop = (ShopVO)obj;
			if(this.id.equals(shop.id)){
				return true;
			}
		}
	return false;
	}
}
